<!DOCTYPE html>
<html>
	<script type="text/javascript">
		function run(){
			var date =new Date();
			var year =date.getFullYear();
			var month =date.getMonth()+1;
			var day =date.getDate();
			var week=date.getDay();
			
			var hour =date.getHours();
			var minute =date.getMinutes();
			var second =date.getSeconds();
			var second2 =date.getMilliseconds();
			
			document.getElementById("enclock").innerHTML =new Date();
			document.getElementById('cnclock').innerHTML
			=year+'年'+month+'月'+day+'日'+''
			+hour +'时'+minute+'分'+
			second
			+'秒'
			
		}
								
	</script>
	
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body onload="window.setInterval(run,1000)">
	
	
		 <div >
			
			 <table border="" cellspacing="" cellpadding="">
			 	
			 	<tr align="center"><td> 时钟</td></tr>
			 
			<tr><td> <div id="enclock" style="color: red;" ></div></td></tr>
			 	<tr><td><div id="cnclock" style="color: #00FFFF;"></div></td></tr>
			 </table>
		 </div>
		
		 
		
		
		
		
	</body>
</html>
